package ExperimentThree.Adapter;

/**
 * @author 北巷_东坡
 * @date 2022/11/13 12:10
 * @computer 10741
 */
public class DataAdapter206 implements DataOperation206{
    private QuickSort206 quickSort206;
    private BinarySearch206 binarySearch206;

    public DataAdapter206() {
        quickSort206 = new QuickSort206();
        binarySearch206 = new BinarySearch206();
    }

    @Override
    public void sort(int[] data) {
        quickSort206.quickSort(data);
    }

    @Override
    public void search(int[] list, int key) {
        binarySearch206.binarySearch(list,key);
    }
}
